import java.util.Observable;
import java.util.Observer;


/**
 *
 * @author Bora SAYINER
 * @since Dec 14, 2014 12:09:00 PM
 * @version 1.0
 */
public class Driver {

	public static void main(String[] args) {
		NukleerSantral nukleerSantral = new NukleerSantral();
		nukleerSantral.addObserver(new Observer() {
			@Override
			public void update(Observable o, Object arg) {
				System.out.println("Guney fani calistirildi");
			}
		});
		nukleerSantral.addObserver(new Observer() {
			
			@Override
			public void update(Observable o, Object arg) {
				System.out.println("Kuzey fani calistirildi");
				
			}
		});
		for (int i = 20; i < 120; i++) {
			try {
				Thread.sleep(100);
			} catch (InterruptedException e) {
				e.printStackTrace();
			}
			nukleerSantral.setSicaklik(i);
		}
	}
}
